package com.alibaba.cloud.exception;

import java.util.function.Predicate;

public class RecordFailurePredicate implements Predicate<Throwable> {
	@Override
	public boolean test(Throwable throwable) {
		return (throwable instanceof BusinessException);
	}

	@Override
	public Predicate<Throwable> and(Predicate<? super Throwable> other) {
		return Predicate.super.and(other);
	}

	@Override
	public Predicate<Throwable> negate() {
		return Predicate.super.negate();
	}

	@Override
	public Predicate<Throwable> or(Predicate<? super Throwable> other) {
		return Predicate.super.or(other);
	}

}